﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using W.Purchase.Domain;

namespace W.Purchase.Repository
{
    public class EFCoreDbContext : DbContext
    {
        public EFCoreDbContext(DbContextOptions<EFCoreDbContext> options) : base(options) { }
        public DbSet<Client> Clients { get; set; }
        public DbSet<ClientContact> ClientContacts { get; set; }
        public DbSet<Contact> Contacts { get; set; }
        public DbSet<Unit> Units { get; set; }
        public DbSet<Vendor> Vendors { get; set; }
        public DbSet<VendorType> VendorTypes { get; set; }
        public DbSet<FinanceType> FinanceTypes { get; set; }
        public DbSet<Receivable> Receivables { get; set; }
        public DbSet<Payable> Payables { get; set; }
        public DbSet<ProductsReturns> ProductsReturns { get; set; }
        public DbSet<Returns> Returns { get; set; }
        public DbSet<BuyProducts> BuyProducts { get; set; }
        public DbSet<Procurement> Procurements { get; set; }
        public DbSet<Actualpayment> Actualpayment { get; set; }
        public DbSet<SalesOrders> SalesOrders { get; set; }
        public DbSet<ProductsSales> ProductsSales { get; set; }
        public DbSet<SaleReturns> SaleReturns { get; set; }
        public DbSet<ProductSalesReturns> ProductSalesReturns { get; set; }
        public DbSet<Actuallypaid> Actuallypaids { get; set; }
    }
}
